using UnityEngine;
using System;
using System.Collections;
using System.IO;
public class Ranking : MonoBehaviour {

	string[] text = new string[5];
	public TextMesh[] carinhas;
	string mensagem;
	int count;
	int i;
	
	void Start () 
	{
	
		for (int i = 0; i < 5; i++) 
		{
			text[i] = PlayerPrefs.GetString("Player"+i);
		}
		
		foreach(TextMesh texts in carinhas)
		{
			
			if(text[i] != "")
			{
				string[] aditive = text[i].Split('/');
				string textFinal = aditive[0]+" - " + aditive[1];
				texts.text = textFinal;
			}
			i++;
		}
	}
}
